import request from '@/utils/request'

//获取管理角色列表
export function getRoles(page, limit, searchObj) {
    return request({ url: `/acl/role/${page}/${limit}`, method: 'get', params: searchObj })
}

//添加角色
export function addRole(role) {
    return request({ url: `/acl/role/save`, method: 'post', data: role })
}


//更新角色
export function updateRole(role) {
    return request({ url: `/acl/role/update`, method: 'put', data: role })
}

//批量删除角色
export function batchRemove(ids) {
    return request({ url: `/acl/role/batchRemove`, method: 'delete', data: ids })
}

//删除角色
export function delRole(id) {
    return request({ url: `/acl/role/remove/${id}`, method: 'delete' })
}

